Platform Explorer / Nuxeo Platform 2021.49

Contribution org.nuxeo.ecm.platform.preview.actions--actions

This contribution is part of XML component org.nuxeo.ecm.platform.preview.actions inside nuxeo-preview-jsf-2021.49.2.jar /OSGI-INF/actions-contrib.xml

Extension Point

Extension point actions of component ActionService.

Registration Order

39
The registration order represents the order in which this contribution was registered on its target extention point. This will impact the override/merge behaviour when it is implemented on the target service, and is useful for proper customization of existing contributions.
You can influence this order by adding "require" tags in the containing component declaration, to make sure it is resolved after another component (see "Resolution Order" on components).

Contributed Items

  • <action enabled="false" icon="/icons/file.gif" id="TAB_PREVIEW" label="label.document.preview" link="/incl/tabs/preview_tab.xhtml" order="200" type="rest_document_link">
          <category>VIEW_ACTION_LIST</category>
          <filter-id>view_preview</filter-id>
        </action>
  • <action enabled="false" icon="/icons/pdf.png" id="POPUP_PREVIEW" label="label.document.preview" link="javascript:doPreview" order="130">
          <category>POPUP</category>
          <filter-id>popup_view_preview</filter-id>
        </action>
  • <action enabled="true" icon="/icons/preview.png" id="showFancyBoxPreviewPopup" label="label.document.preview" link="javascript:doPreviewPopup" order="130">
          <category>POPUP</category>
          <filter-id>popup_view_preview</filter-id>
        </action>
  • <action icon="/icons/contextual_menu/preview.png" id="showFancyBoxPreview" label="label.document.preview" order="50" type="fancybox">
          <category>DOCUMENT_UPPER_ACTION</category>
          <filter-id>view_preview</filter-id>
          <filter-id>not_folder</filter-id>
          <filter-id>not_anonymous</filter-id>
          <properties>
            <property name="iframe">
              #{previewActions.getCurrentDocumentPreviewPopupURL()}
            </property>
            <property name="ajaxSupport">true</property>
          </properties>
        </action>
  • <action icon="/icons/contextual_menu/preview.png" id="blobPreview" label="label.document.preview" order="150" type="fancybox">
          <category>BLOB_ACTIONS</category>
          <filter-id>hasBlobPreview</filter-id>
          <properties>
            <property name="iframe">#{previewActions.getPreviewURL(document, blobXPath)}</property>
            <property name="ajaxSupport">true</property>
          </properties>
        </action>

XML Source

<extension point="actions" target="org.nuxeo.ecm.platform.actions.ActionService">

    <!-- disable the old tab as we now use the showPreviewPopup action -->
    <action enabled="false" icon="/icons/file.gif" id="TAB_PREVIEW" label="label.document.preview" link="/incl/tabs/preview_tab.xhtml" order="200" type="rest_document_link">
      <category>VIEW_ACTION_LIST</category>
      <filter-id>view_preview</filter-id>
    </action>

    <action enabled="false" icon="/icons/pdf.png" id="POPUP_PREVIEW" label="label.document.preview" link="javascript:doPreview" order="130">
      <category>POPUP</category>
      <filter-id>popup_view_preview</filter-id>
    </action>

    <action enabled="true" icon="/icons/preview.png" id="showFancyBoxPreviewPopup" label="label.document.preview" link="javascript:doPreviewPopup" order="130">
      <category>POPUP</category>
      <filter-id>popup_view_preview</filter-id>
    </action>

    <action icon="/icons/contextual_menu/preview.png" id="showFancyBoxPreview" label="label.document.preview" order="50" type="fancybox">
      <category>DOCUMENT_UPPER_ACTION</category>
      <filter-id>view_preview</filter-id>
      <filter-id>not_folder</filter-id>
      <filter-id>not_anonymous</filter-id>
      <properties>
        <property name="iframe">
          #{previewActions.getCurrentDocumentPreviewPopupURL()}
        </property>
        <property name="ajaxSupport">true</property>
      </properties>
    </action>

    <action icon="/icons/contextual_menu/preview.png" id="blobPreview" label="label.document.preview" order="150" type="fancybox">
      <category>BLOB_ACTIONS</category>
      <filter-id>hasBlobPreview</filter-id>
      <properties>
        <property name="iframe">#{previewActions.getPreviewURL(document, blobXPath)}</property>
        <property name="ajaxSupport">true</property>
      </properties>
    </action>

  </extension>